/**
 * Project  : monkey
 * Author   : Wu Tian Qiang
 * Date     : 2016/10/18 20:49:30
 */
Ext.define('Monkey.model.user.User', {
    extend: 'Monkey.model.BaseModel',
    fields: [
        {name: 'id', type: 'int'},
        {name: 'account', type: 'string'},
        {name: 'nick', type: 'string'},
        {name: 'email', type: 'string'},
        {name: 'mobile', type: 'string'},
        {name: 'status', type: 'string'},
        {name: 'sex', type: 'string'},
        {name: 'cardId', type: 'string'},
        {name: 'birthday', type: 'date'},
        {name: 'QQ', type: 'string'},
        {name: 'address', type: 'string'},
        {name: 'remark', type: 'string'},
        {
            name: 'orgId', type: 'int',
            mapping: function (data) {
                return data.organization.id;
            }
        }, {
            name: 'orgName', type: 'string',
            mapping: function (data) {
                return data.organization.name;
            }
        }
    ]
});